package com.sls.game.service;

import java.util.List;

import com.sls.core.socket.Head;
import com.sls.core.socket.ServerDisponseException;
import com.sls.game.pojo.GoodsOrderInfo;

/**
 * 
 * 商品订单信息管理接口
 * 
 * @author cx
 */
public interface GoodsOrderService {

	/**
	 * 商品订单信息分页查询
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryOrders(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 商品订单信息单条记录查询
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryOrderByOrderId(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 商品订单信息更新
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String update(String body, Head head) throws ServerDisponseException;

	/**
	 * 查询供应商名称列表
	 * 
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public List<String> querySupplyNameList(Head head)
			throws ServerDisponseException;

	/**
	 * 根据供应商名称查询订单信息
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public List<GoodsOrderInfo> queryOrderInfoBySupplyName(String body,
			Head head) throws ServerDisponseException;

	/**
	 * 订单最终结果异步通知
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 * @date 2013-01-30
	 * @author Wangxg
	 */
	public String updateSendAsynMsg(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 查询所有上游账号
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryAccountNo(String body, Head head)
			throws ServerDisponseException;

	public Long queryOrderTotalPrice(String body, Head head)
			throws ServerDisponseException;

	public Long queryOrderCostTotalPrice(String body, Head head)
			throws ServerDisponseException;
	
	public Long queryOrderTotalParvalue(String body, Head head)
			throws ServerDisponseException;
	
	public Long queryOrderTotalNum(String body, Head head)
			throws ServerDisponseException;

}
